getFirstMatch

open fun getFirstMatch(@NonNull supportedLocales: Array<String>): Locale(source)

Returns the first match in the locale list given an unordered array of supported locales in BCP 47 format.

Return

The first Locale from this list that appears in the given array, or null if the LocaleListCompat is empty.